Page({
    data: {

        videoSrc:"https://static.huaweimossel.com/public/videos/25/e4/a8/0a34dcd5d1b4c3d3e4000a2c42d9f5fe2aa794d0.mp4",
        posterSrc: "https://img2.baidu.com/it/u=4046032575,170739907&fm=253&fmt=auto&app=138&f=JPEG?w=479&h=500",
        controls: true,
        autoplay: true,
        loop: true,
        muted: true,
        objectFit: "fill",
    },
    onLoad:function(){
        let videoContext = has.createVideoContext('myVideo');
        videoContext.VideoContext.play()
    },
    onPlay(e) {
        console.log("video start play.");
    },
    onPause(e) {
        console.log("video pause.");
    },
    onEnded(e) {
        console.log("video end.");
    },
});